package entities;

/**
 * 
 * @author eks691
 * 
 */
public class Employee extends Person {

	/** The employee's unique */
	private int id;

	/** The employee member's password */
	private String password;

	/**
	 * Constructor
	 * 
	 * @param i
	 *            the id of the person
	 * @param pd
	 *            the password for this person
	 */
	public Employee(int i, String pd) {
		super(i);
		id = i;
		password = pd;
	}

	/**
	 * 
	 * @return the unique id for this employee
	 */
	public int getId() {
		return id;
	}

	/**
	 * 
	 * @return the password for this employee
	 */
	public String getPassword() {
		return password;
	}

	/**
	 * regression tests
	 * 
	 * @param args
	 */
	public static void main(String[] args) {
		Employee employee = new Employee(2, "123");

		if (employee.getId() != 2) {
			System.out.println("ERROR: In getId in Employee Class");
		}

		if (employee.getPassword().compareTo("123") != 0) {
			System.out.println("ERROR: In getPassword in Employee Class");
		}
	}
}